package com.baidu.manager.modules.sys.service.impl;


import com.baidu.manager.modules.sys.dao.SysLogDao;
import com.baidu.manager.modules.sys.entity.SysLog;
import com.baidu.manager.modules.sys.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author: jql
 * @description: TODO()
 * @Date: Created by 17:53 2018/4/18
 */
@Service
public class SysLogServiceImpl implements SysLogService {

    @Autowired
    private SysLogDao sysLogDao;

    @Override
    public SysLog queryObject(Long id) {
        return sysLogDao.queryObject(id);
    }

    @Override
    public List<SysLog> queryList(Map<String, Object> map) {
        return sysLogDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return sysLogDao.queryTotal(map);
    }

    @Override
    public void save(SysLog sysLog) {
        sysLogDao.save(sysLog);
    }

    @Override
    public void delete(Long id) {
        sysLogDao.delete(id);
    }

    @Override
    public void deleteBatch(Long[] ids) {
        sysLogDao.delectBatch(ids);
    }
}
